<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>

        <?php
        function first_action($member_id){
// Connecting to the database
        $conn = mysql_connect("localhost", "root", "") or die(mysql_error());
        mysql_select_db("mydb", $conn) or die(mysql_error());

// Select first_name, second_name 
        $Name= mysql_query ("SELECT first_name, last_name FROM member WHERE member_id = '$member_id' ");
        $row = mysql_fetch_assoc($Name);
// check if first_name or second_name == NULL
if($row['first_name']== NULL || $row['last_name']== NULL ) {
// Call SignUp  
                              include ("SignUp.php");
               }

        
// Closing connection
        mysql_close($conn);
        }
    ?>
  </body>
</html>
